<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.shopping.category.*"%>
<%@  include file="_sessioncheck.jsp" %>


<%
List<Category> categories = Category.getCategories();
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script language="javascript" src="script/TV20.js"></script>
</head>
<body>
<script language="javascript">

<!--
  addNode(-1,0,"所有类别","images/top.gif");  
  <%
  	for(Iterator<Category> it = categories.iterator();it.hasNext();) {
  		Category c = it.next();
  %>
  addNode(<%=c.getPid() %>,<%=c.getId()%>,"<%= c.getName() %>"," images/top.gif") 
  <%
  	}
  %>
 
	showTV();
-->
</script>
</body>
</html>